package com.lingjoin.manager.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lingjoin.manager.base.service.impl.BaseServiceImpl;
import com.lingjoin.manager.mybatis.mapper.UserMapper;
import com.lingjoin.manager.mybatis.model.User;
import com.lingjoin.manager.service.UserService;

@Transactional
@Service(value = "UserService")
public class UserServiceimp  extends BaseServiceImpl<User> implements UserService{
	
	@Autowired UserMapper userMapper;
	
	@Override
	public List<User> pub() {
		return userMapper.selectAll();
	}

	@Override
	public void adduser(User u) {
		
		userMapper.insert(u);
	}
	

	
}
